package data.type.and.operator;

import general.DataTypeNOperator;

public class DtoArray implements DataTypeNOperator{
	String[] stringArr;
	int intArr[];
	boolean blArr[] = new boolean[]{true, false};
	String printArr[] = new String[5];
	
	private void addValue(String vl1, String vl2, String vl3, String vl4, String vl5)
	{
		printArr[0] = vl1;
		printArr[1] = vl2;
		printArr[2] = vl3;
		printArr[3] = vl4;
		printArr[4] = vl5;
	}
	
	private void printValue()
	{
		for (int i = 0; i < printArr.length; i++) {
			String value = printArr[i];
			if (value != null)
				System.out.println("Gia tri thu " + (i + 1) + " la: " + value);
			else
				System.out.println("Khong co gia tri");
		}
	}
	

	@Override
	public void run() {
		DtoArray asd = new DtoArray();
		asd.addValue("1", "2", "3", "4", "5");
		asd.printValue();
	}
}
